package com.yonyou.brigade.third_parties.third.model;

import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author jiangzhf@yonyou.com
 * @since 2018-08-16
 */
@TableName("bri_user_auth")
public class BriUserAuth extends Model<BriUserAuth> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    /**
     * 普通用户ID
     */
    @TableField("user_id")
    private String userId;
    /**
     * 用户姓名
     */
    @TableField("user_name")
    private String userName;
    /**
     * 用户手机号
     */
    private String phone;
    /**
     * 用户邮箱
     */
    private String email;
    /**
     * 授权人用户ID
     */
    @TableField("dest_user_id")
    private String destUserId;
    /**
     * 授权人用户姓名
     */
    @TableField("dest_user_name")
    private String destUserName;
    /**
     * 授权人邮箱
     */
    @TableField("dest_email")
    private String destEmail;
    /**
     * 授权人手机号
     */
    @TableField("dest_phone")
    private String destPhone;
    /**
     * 组织编号
     */
    @TableField("org_pk")
    private String orgPk;
    /**
     * 人员编码
     */
    private String pcode;
    /**
     * 租户id
     */
    private String tenant;
    /**
     * 携程是否可用
     */
    @TableField("ctrip_enable")
    private Integer ctripEnable;
    /**
     * 中兴是否可用
     */
    @TableField("zteitc_enable")
    private Integer zteitcEnable;
    private Date ts;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getDestUserId() {
        return destUserId;
    }

    public void setDestUserId(String destUserId) {
        this.destUserId = destUserId;
    }

    public String getDestUserName() {
        return destUserName;
    }

    public void setDestUserName(String destUserName) {
        this.destUserName = destUserName;
    }

    public String getDestEmail() {
        return destEmail;
    }

    public void setDestEmail(String destEmail) {
        this.destEmail = destEmail;
    }

    public String getDestPhone() {
        return destPhone;
    }

    public void setDestPhone(String destPhone) {
        this.destPhone = destPhone;
    }

    public String getOrgPk() {
        return orgPk;
    }

    public void setOrgPk(String orgPk) {
        this.orgPk = orgPk;
    }

    public String getPcode() {
        return pcode;
    }

    public void setPcode(String pcode) {
        this.pcode = pcode;
    }

    public String getTenant() {
        return tenant;
    }

    public void setTenant(String tenant) {
        this.tenant = tenant;
    }

    public Integer getCtripEnable() {
        return ctripEnable;
    }

    public void setCtripEnable(Integer ctripEnable) {
        this.ctripEnable = ctripEnable;
    }

    public Integer getZteitcEnable() {
        return zteitcEnable;
    }

    public void setZteitcEnable(Integer zteitcEnable) {
        this.zteitcEnable = zteitcEnable;
    }

    public Date getTs() {
        return ts;
    }

    public void setTs(Date ts) {
        this.ts = ts;
    }

    public static final String ID = "id";

    public static final String USER_ID = "user_id";

    public static final String USER_NAME = "user_name";

    public static final String PHONE = "phone";

    public static final String EMAIL = "email";

    public static final String DEST_USER_ID = "dest_user_id";

    public static final String DEST_USER_NAME = "dest_user_name";

    public static final String DEST_EMAIL = "dest_email";

    public static final String DEST_PHONE = "dest_phone";

    public static final String ORG_PK = "org_pk";

    public static final String PCODE = "pcode";

    public static final String TENANT = "tenant";

    public static final String CTRIP_ENABLE = "ctrip_enable";

    public static final String ZTEITC_ENABLE = "zteitc_enable";

    public static final String TS = "ts";

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "BriUserAuth{" +
        "id=" + id +
        ", userId=" + userId +
        ", userName=" + userName +
        ", phone=" + phone +
        ", email=" + email +
        ", destUserId=" + destUserId +
        ", destUserName=" + destUserName +
        ", destEmail=" + destEmail +
        ", destPhone=" + destPhone +
        ", orgPk=" + orgPk +
        ", pcode=" + pcode +
        ", tenant=" + tenant +
        ", ctripEnable=" + ctripEnable +
        ", zteitcEnable=" + zteitcEnable +
        ", ts=" + ts +
        "}";
    }
}
